package com.yanyi.music.service;

import com.yanyi.music.domain.Consumer;

import java.util.List;
import java.util.Map;

public interface ConsumerService {
    int deleteByPrimaryKey(Integer id);

    int insert(Consumer record);

    int insertSelective(Consumer record);

    Consumer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Consumer record);

    int updateByPrimaryKey(Consumer record);

    List<Consumer> findAll(Map<String,Object> map);
    /**
     * 验证密码
     */
    int verifyPassword(String username,String password);

    /**
     * 根据账号查询
     */
    Consumer getByUsername(String username);
}
